package mundo.java.client.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public abstract class Event extends GwtEvent<Event.Handler> {
	public interface Handler<E extends Event> extends EventHandler {
		public void onEvent(E e);
	}
	
	@Override
	protected void dispatch(Handler handler) {
		handler.onEvent(this);
	}
}